#include <stdio.h>
#include <stdlib.h>
#include <string.h>

int main(void)
{
    char *p1 = (char *)malloc(5);
    char *p2 = (char *)malloc(5);
    char **pp = (char **)malloc(sizeof(char **) * 3);
    char **h = pp;

    printf("%p, %p, %p, %p\n", pp, h, p1, p2);

    strcpy(*(h++), "hello");
    strcpy(*(h), "world");

    printf("%s, %s\n", *pp, *(pp+1));

    free(pp);
    free(p1);
    free(p2);

    return 0;
}